package com.koron.standard.deviceClasssify.bean.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koron.standard.bean.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备分类基本参数组参数(TypeGroupParams)表实体类
 *
 * @author jzp
 * @since 2021-07-13 11:13:26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("c_type_group_params")
@ApiModel(value = "设备分类基本参数组参数", description = "TypeGroupParams")
public class TypeGroupParams extends BaseBean {

    /**
     * 如果groupId=null且isChange=0则表示初始预设参数
     * 如果groupId关联了参数组ID就是该参数组的预设参数
     */
    @ApiModelProperty(value = "参数组ID(c_type_group.id)")
    private String groupId;

    @ApiModelProperty(value = "参数code")
    private String paramCode;

    @ApiModelProperty(value = "参数名称")
    private String paramName;

    @ApiModelProperty(value = "是否允许修改，0预设参数，1自定义参数")
    private Integer isChange;

    @ApiModelProperty(value = "是否必填")
    private Integer isMust;

    @ApiModelProperty(value = "输入类型（radio,单选；multi，多选；box，文本框）")
    private String enterType;

    @ApiModelProperty(value = "数据类型（text,文本；number，数字；date，日期；....）")
    private String dataType;

    @ApiModelProperty(value = "文本限制长度")
    private Integer dataLength;

    @ApiModelProperty(value = "保留小数点后位数")
    private Integer dataPrecision;

    @ApiModelProperty(value = "数据计量单位")
    private String dataUnit;

    @ApiModelProperty(value = "数据默认值")
    private String dataText;

    @TableField(value="`desc`")
    @ApiModelProperty(value = "参数说明")
    private String desc;

    @TableField(value="`sort`")
    @ApiModelProperty(value = "调整参数顺序")
    private Integer sort;

}
